package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lmshe
 * @since 2018-07-12
 */
@TableName("w_documents_page")
public class DocumentsPage extends Model<DocumentsPage> {

    private static final long serialVersionUID = 1L;

    /**
     * 文档内容表
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 文档id
     */
	@TableField("documents_id")
	private Long documentsId;
    /**
     * 文档一页内容
     */
	@TableField("page_content")
	private String pageContent;
    /**
     * 文档内容一页为一张图片
     */
	@TableField("page_url")
	private String pageUrl;
    /**
     * 文档页数
     */
	@TableField("page_num")
	private Integer pageNum;
	private Date createtime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getDocumentsId() {
		return documentsId;
	}

	public void setDocumentsId(Long documentsId) {
		this.documentsId = documentsId;
	}

	public String getPageContent() {
		return pageContent;
	}

	public void setPageContent(String pageContent) {
		this.pageContent = pageContent;
	}

	public String getPageUrl() {
		return pageUrl;
	}

	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "DocumentsPage{" +
			"id=" + id +
			", documentsId=" + documentsId +
			", pageContent=" + pageContent +
			", pageUrl=" + pageUrl +
			", pageNum=" + pageNum +
			", createtime=" + createtime +
			"}";
	}
}
